package com.example.msg;

import cn.hutool.http.HttpStatus;
import lombok.*;

import java.util.List;

@Data
public class PageBean<T> extends BaseResponse{

    TableData<T> data;

    public PageBean(long total, List<T> rows) {
        this.data = new TableData<T>(total, rows);
    }

    @Data
    public class TableData<T> {
        long total;
        List<T> rows;

        public TableData(long total, List<T> rows) {
            this.total = total;
            this.rows = rows;
        }
    }
}
